package com.itcase.homework03.work05;

/*
使用匿名内部类方式创建一个员工对象,并调用其工作和开会的功能
*/
public class Test {
    public static void main(String[] args) {
        Employee employee=new Employee("小李","123","10000") {
            @Override
            public void work() {
                System.out.println(getName()+"员工的工号为："+getId()+",在努力敲代码，工资为："+getSalary()+"!");
            }

            @Override
            public void meet() {
                System.out.println(getName()+"员工的工号为："+getId()+",被老板叫到办公室开会去了！");
            }
        };

        employee.work();
        employee.meet();
    }
}
